<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文章列表页</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<link href="./css/boxy.css" rel="stylesheet" type="text/css" />
<{insert_scripts files="./js/jquery.min.js,admin.js,jquery.boxy.js"}>
</head>
<body>
<form name="Form1" method="post" action="manage.aspx?tablename=news" id="Form1">
  <div class="list_border">
    <div class="tools"> 
      <!--      <div id="caozuo" style="margin:0 0 0 2px;">
        <p>操作</p>
        <input type="button" name="Button2" value="添加信息" onclick="javascript:__doPostBack('Button2','')" id="Button2" class="button_add" />
        <input type="button" name="Bt_del" value="删除信息" onclick="javascript:__doPostBack('Bt_del','')" id="Bt_del" class="button_del" />
      </div>-->
      <div>
        <p> 搜索</p>
        <select name="DD_SearchType" id="DD_SearchType" class="dd" style="width:80px;">
          <option value="title">标题</option>
          <option value="content">内容</option>
          <option value="AdminName">发布者</option>
        </select>
        <input name="TB_key" type="text" id="TB_key" class="textbox" />
        <input type="button" name="Button5" value="搜索" onclick="javascript:__doPostBack('Button5','')" id="Button5" class="button_search" />
      </div>
    </div>
    <div class=list>
      <ul style="background-image: url(../images/t_bg.jpg)">
        <li class="check">
          <input type=checkbox name=all onclick="select_all(this.checked);"  />
        </li>
        <li class="left" ><b>序号</b></li>
        <li class="title"><b>标题/描述</b></li>
<!--        <li style="width:62px"><b>删除</b></li>
        <li style="width:62px"><b>状态更改</b></li>-->
        <li style="width:168px"><b>可用操作</b></li>
        <li style="width:60px"><b>显示顺序</b></li>
        <li style="width:120px"><b>更新时间</b></li>
        <li style="width:50px"><b>发布者</b></li>
        <li style="width:100px"><b>当前状态</b></li>
        <li class="none"></li>
      </ul>
      <{foreach from=$res item=datil key=id}>
      <ul id=l15 class="pane">
        <li class="check">
          <input type=checkbox name="c<{$datil.id}>" />
        </li>
        <li class="left" ><{$datil.id}></li>
        <li class="title"><{$datil.post_title|truncate:30:"...":true}>&nbsp;&nbsp;&nbsp;<{if $datil.post_highlight!=0 }><img src="/images/admin/<{if $datil.post_summary!=null}>slide.png<{else}>warning_small.gif<{/if}>" align="absmiddle"/><{else if $datil.post_summary!=null}><img src="/images/admin/tag.gif" align="absmiddle"/><{/if}></li>
        <li style="width:168px">
        <a class="dataEdit" title="编辑"   href="./index.php?c=admin&a=article&mod=edit&act=editframe&id=<{$datil.id}>"><img src="/images/admin/icon_edit.gif"/></a>
        
           <{if $datil.system!=1}>
          <{if $datil.post_satus==0}><a href="./index.php?c=admin&a=article&mod=edit&display=true&id=<{$datil.id}>" class="btn-approve" title="前台显示"><img src="/images/admin/picflag.gif"/></a><{else}> <a href="./index.php?c=admin&a=article&mod=edit&display=false&id=<{$datil.id}>" class="btn-unapprove" title="前台屏蔽" ><img src="/images/admin/picnoflag.gif"/></a> <{/if}>     
        
       <a class="dataDel" href="./index.php?c=admin&a=article&mod=edit&act=del&id=<{$datil.id}>"  class="btn-spam" title="删除"><img src="/images/admin/icon_trash.gif"/></a>
        <{*-置顶----------------------------------------*}>            
        <{if $datil.sid >=10000}>
        <a href="./index.php?c=admin&a=article&mod=edit&top=false&id=<{$datil.id}>"  title="取消置顶"><img src="/images/admin/arrow_up_fade.gif"/></a>
        <{else}>
        <a href="./index.php?c=admin&a=article&mod=edit&top=true&id=<{$datil.id}>" title="置顶"><img src="/images/admin/arrow_up.gif"/></a>
        <{/if}>
        <{if $datil.fid!=1}>
        <{*-推荐----------------------------------------*}>
        <{if $datil.post_highlight==0}>
        <a href="./index.php?c=admin&a=article&mod=edit&highlight=true&id=<{$datil.id}>"  title="推荐"><img src="/images/admin/highlight.gif"/></a>
        <{else}>
        <a href="./index.php?c=admin&a=article&mod=edit&highlight=false&id=<{$datil.id}>" title="取消推荐"><img src="/images/admin/highlight_fade.gif"/></a>
        <{/if}>
        <{/if}> 
        <{/if}>
        </li>
        <li style="width:60px"><{if $datil.system==1}><font color="#666666">无</font><{else if $datil.sid >=10000}><font color="#FF0000">置顶</font><{else}><{$datil.sid}><{/if}></li>
        <li style="width:120px"><{$datil.post_date|date_format:"%Y-%m-%d"}></li>
        <li style="width:50px"><{if $datil.system==1}><b>System</b><{else}><{$datil.post_author}><{/if}></li>
        <li style="width:100px"><{if $datil.system==1}><font color="#FF0000">固定</font><{else}><{if $datil.post_satus==0}><font color="#CC0000">屏蔽</font><{else}>显示<{if $datil.post_highlight==1&&$datil.fid!=1}><font color="#FF0000">/已推荐</font><{else if $datil.fid!=1}>/未推荐<{/if}><{/if}><{/if}></li>
        <li class="none"></li>
      </ul>
      <{/foreach}> </div>
    <{if $pager}>
    <div class="sabrosus"> 共计<{$pager.total_count}>条记录，分<{$pager.total_page}>页（每页<{$pager.page_size}>条记录）： 
      <!--在当前页不是第一页的时候，显示前页和上一页--> 
      <{if $pager.current_page != $pager.first_page}> <a href="<{spUrl c=admin a=article mod=$mod page=$pager.first_page}>">&lt;</a> <a href="<{spUrl c=admin a=article mod=$mod page=$pager.prev_page}>">上一页</a> <{/if}> 
      <!--开始循环页码，同时如果循环到当前页则不显示链接--> 
      <{foreach from=$pager.all_pages item=thepage}>
      <{if $thepage != $pager.current_page}> <a href="<{spUrl c=admin a=article mod=$mod page=$thepage}>"><{$thepage}></a> <{else}> <span class="current"><{$thepage}></span> <{/if}>
      <{/foreach}> 
      <!--在当前页不是最后一页的时候，显示下一页和后页--> 
      <{if $pager.current_page != $pager.last_page}> <a href="<{spUrl c=admin a=article mod=$mod page=$pager.next_page}>">下一页</a> <a href="<{spUrl c=admin a=article mod=$mod page=$pager.last_page}>">&gt;</a> <{/if}> </div>
    <{/if}> </div>
</form>
<script type="text/javascript">
$(".edit_frame").load(function(){
	alert($(".edit_frame").attr("src"));
	});

$(function() {
	$(".dataEdit").boxy();
	$(".dataDel").click(function() {tempUrl=$(this).attr("href"); Boxy.confirm("确定删除此条记录？", function() {window.location.href=tempUrl}, {title: "提示信息"}); return false; });
});
</script>
<!-- $Id: article_list.html 2012-03-31 wengcanvip@qq.com $ -->
</body>
</html>
